$.AMUI.progress.start();
function tankuang(pWidth, content) {
	$("#alertmsg").remove();
	var html = '<div id="alertmsg" style="position:fixed;top:50%;width:100%;height:30px;line-height:30px;margin-top:-15px; z-index:8888888"><p style="background:#888888;opacity:0.8;width:'
			+ pWidth
			+ 'px;color:#fff;text-align:center;padding:10px 10px;margin:0 auto;font-size:12px;border-radius:4px; z-index:8888888">'
			+ content + '</p></div>'
	$("body").append(html);
	$("#alertmsg").hide();
	$("#alertmsg").fadeIn(500);

	var t = setTimeout(next, 1000);
	function next() {
		$("#alertmsg").fadeTo("slow", 0.01, function() {//fade
			$(this).slideUp("slow", function() {//slide up
				$(this).remove();//then remove from the DOM
			});
		});
	}
}

function tankuang_redirect(pWidth, content, url) {
	$("#alertmsg").remove();
	var html = '<div id="alertmsg" style="position:fixed;top:50%;width:100%;height:30px;line-height:30px;margin-top:-15px; z-index:8888888"><p style="background:#888888;opacity:0.8;width:'
			+ pWidth
			+ 'px;color:#fff;text-align:center;padding:10px 10px;margin:0 auto;font-size:12px;border-radius:4px; z-index:8888888">'
			+ content + '</p></div>'
	$("body").append(html);
	$("#alertmsg").hide();
	$("#alertmsg").fadeIn(500);

	var t = setTimeout(next, 1000);
	function next() {
		$("#alertmsg").fadeTo("slow", 0.01, function() {//fade
			$(this).slideUp("slow", function() {//slide up
				$(this).remove();//then remove from the DOM
				window.location.href = url;
			});
		});
	}
}
